$OpenBSD: patch-include_system_h,v 1.4 2010/05/19 07:27:25 espie Exp $
--- include/system.h.orig	Mon Dec  8 00:39:13 2003
+++ include/system.h	Wed May 19 06:01:29 2010
@@ -521,11 +521,15 @@ E struct tm *FDECL(localtime, (const time_t *));
 #  endif
 # endif
 
+#if defined(BSD)
+/* no declaration needed; it's in time.h */
+#else
 # if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
 E time_t FDECL(time, (time_t *));
 # else
 E long FDECL(time, (time_t *));
 # endif /* ULTRIX */
+#endif
 
 #ifdef VMS
 	/* used in makedefs.c, but missing from gcc-vms's <time.h> */
